|
|
|
|
|
|
|
The MDI form can be minimized, and only one icon will be displayed on the desktop representing the MDI form and all of its children. |
|
|
|
|
|
|
|
|
If the MDI form is unloaded, all the loaded children are also unloaded. |
|
|
|
 |
|
|
|
|
NOTE The client area is any usable area on the MDI form thats clear of any toolbars, status bars, or picture controls that may be on the MDI form. |
|
|
|
|
|
|
|
|
Creating the Employee Tracking System |
|
|
|
|
|
|
|
|
Lets now create a complete MDI application using the Employee Information form you developed in earlier chapters. To accomplish this, youll need to perform several steps. First, add an MDI form to the project. Next, set the Employee Information forms MDIChild property to True. Finally, copy the menus from the Employee Information form to the MDI form. |
|
|
|
|
| Make Your Own MDI Project 1. Open your Employee project. 2.Select Project, Add MDI Form from the Visual Basic menu. 3. Double-click the MDI Form template to add this template to your application. 4. Set the Name property of the MDI form to frmMain. 5. Set the Caption property to Employee Tracking System. 6. Set the WindowState property to 2-Maximized. 7. Save the project, naming the MDI form Main.frm. |  | It is very easy to create an MDI project. Remember that you are allowed only one MDI form in one application. |
|
|
|
|
|
|
You now need to move the menus from the Employee Information form to the MDI form. Unfortunately, theres no easy way to do this with Visual Basic. You need to open up the MDI form and the Employee Information form in Notepad or WordPad. |
|
|
|
|
|